package sk.stuba.fiit.arthur.web.mvc.model.dao;

import java.util.Collection;

import sk.stuba.fiit.arthur.web.mvc.model.entity.PersonEntity;
import org.springframework.dao.DataAccessException;

/**
 * Person DAO interface.
 * 
 * @author Marek Hruska
 */
public interface PersonDao {

    /**
     * Find persons.
     */
    public Collection<PersonEntity> findPersons() throws DataAccessException;
    
    /**
     * Saves person.
     */
    public void save(PersonEntity personEntity);
    
    
    /**
     * Delete person.
     */
    public void delete(PersonEntity personEntity);
    
    /**
     * Find person by id.
     */
    public PersonEntity findPersonById(Integer id) throws DataAccessException;
}

